package com.ruoyi.common.domain.word.vo;

import javax.persistence.Column;
import javax.persistence.Transient;
import java.util.Date;

public class CommonWordSentenceApiVO {
    private Long id;

    private Long wid;

    private Long sid;

    private Date addTime;

    private Long addUid;


    /**
     *  @author: bukaa
     *  @Date: 2020-05-15 21:30
     *  @Description: 配置标红句子
     */
    private String sps;


    /**
     *  @author: bukaa
     *  @Date: 2020-05-15 21:30
     *  @Description: 配置标红释义
     */
    private String pps;

    private Integer sort;

    private String source;

    @Column(name = "`year`")
    private String year;

    @Column(name = "`cat`")
    private Integer cat ;

    @Transient
    private String strCat;

    @Column(name = "`type`")
    private Integer type;

    @Transient
    private String strType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getWid() {
        return wid;
    }

    public void setWid(Long wid) {
        this.wid = wid;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Long getAddUid() {
        return addUid;
    }

    public void setAddUid(Long addUid) {
        this.addUid = addUid;
    }

    public String getSps() {
        return sps;
    }

    public void setSps(String sps) {
        this.sps = sps;
    }

    public String getPps() {
        return pps;
    }

    public void setPps(String pps) {
        this.pps = pps;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public Integer getCat() {
        return cat;
    }

    public void setCat(Integer cat) {
        this.cat = cat;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getStrCat() {
        return strCat;
    }

    public void setStrCat(String strCat) {
        this.strCat = strCat;
    }

    public String getStrType() {
        return strType;
    }

    public void setStrType(String strType) {
        this.strType = strType;
    }

    public String getStrType(Integer type){
        if (type == null){
            return null;
        }
        switch(type){
            case 1 :
                return "阅读";
            case 2 :
                return "新题型";
            case 3 :
                return "翻译";
            case 4 :
                return "完型";
            case 5 :
                return "结构与词汇";
            case 6 :
                return "检查错误与修正";
            case 7 :
                return "动词形式";
            case 8 :
                return "介词的使用";
            case 9 :
                return "时态";
            case 10 :
                return "造句";
            case 11 :
                return "检查错误";
            case 12 :
                return "大作文";
            case 13 :
                return "小作文";

        }
        return null;
    }

    public String getStrCat(Integer cat){
        if (cat == null){
            return null;
        }
        switch(cat){
            case 1 :
                return "英语一";
            case 2 :
                return "英语二";
        }
        return null;
    }
}
